<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>盒子模型 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    
    <link rel="prev" href="../CSS/伪类选择器.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="3.4"
        data-chapter-title="盒子模型"
        data-filepath="CSS/盒子模型.md"
        data-basepath=".."
        data-revision="Sun Sep 23 2018 23:38:49 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="Notes/notes.html">
            
                
                    <a href="../Notes/notes.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        知识库
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="Notes/git的使用.html">
            
                
                    <a href="../Notes/git的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        git的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="Notes/emmet快捷法.html">
            
                
                    <a href="../Notes/emmet快捷法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        emmet快捷法
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="HTML/index.html">
            
                
                    <a href="../HTML/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="HTML/什么是html5.html">
            
                
                    <a href="../HTML/什么是html5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        什么是html5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="HTML/a链接.html">
            
                
                    <a href="../HTML/a链接.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        a链接
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="HTML/img.html">
            
                
                    <a href="../HTML/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        图片
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="HTML/元素.html">
            
                
                    <a href="../HTML/元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="HTML/标签.html">
            
                
                    <a href="../HTML/标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="HTML/列表.html">
            
                
                    <a href="../HTML/列表.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        列表
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="HTML/table&amp;form.html">
            
                
                    <a href="../HTML/table&amp;form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        表格和表单
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="HTML/form表单.html">
            
                
                    <a href="../HTML/form表单.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="HTML/table表格.html">
            
                
                    <a href="../HTML/table表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="HTML/常用表单类型.html">
            
                
                    <a href="../HTML/常用表单类型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        常用表单类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="HTML/实体字符.html">
            
                
                    <a href="../HTML/实体字符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="HTML/多媒体和iframe.html">
            
            <span><b>2.3.</b> 多媒体和iframe</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="HTML/audio&amp;vdieo.html">
            
                
                    <a href="../HTML/audio&amp;vdieo.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        音频和视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="HTML/iframe.html">
            
                
                    <a href="../HTML/iframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        iframe
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="HTML/blog.html">
            
                
                    <a href="../HTML/blog.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.3.</b>
                        
                        其它
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="CSS/css3.html">
            
                
                    <a href="../CSS/css3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="CSS/选择器.html">
            
                
                    <a href="../CSS/选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="CSS/属性选择器.html">
            
                
                    <a href="../CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="CSS/伪类选择器.html">
            
                
                    <a href="../CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="3.4" data-path="CSS/盒子模型.html">
            
                
                    <a href="../CSS/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="&#x76D2;&#x5B50;&#x6A21;&#x578B;">&#x76D2;&#x5B50;&#x6A21;&#x578B;</h2>
<pre><code class="lang-html"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span>&#x76D2;&#x5B50;&#x6A21;&#x578B;<span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">style</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span>&gt;</span><span class="css">
            *<span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">margin</span>:<span class="hljs-value"> <span class="hljs-number">0</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">padding</span>:<span class="hljs-value"> <span class="hljs-number">0</span></span></span>;
            }</span>

            <span class="hljs-tag">h1</span><span class="hljs-rules">{
                <span class="hljs-comment">/* &#x6240;&#x6709;&#x5143;&#x7D20;&#x90FD;&#x53EF;&#x4EE5;&#x770B;&#x505A;&#x76D2;&#x5B50; */</span>
                <span class="hljs-comment">/* &#x5916;&#x8FB9;&#x8DDD; (&#x4E0E;&#x522B;&#x7684;&#x76D2;&#x5B50;&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;) */</span>
                <span class="hljs-rule"><span class="hljs-attribute">margin</span>:<span class="hljs-value"> <span class="hljs-number">10px</span></span></span>;
                <span class="hljs-comment">/* &#x8FB9;&#x6846; &#x590D;&#x5408;&#x5C5E;&#x6027;(&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x591A;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x5C5E;&#x6027;) */</span>
                <span class="hljs-rule"><span class="hljs-attribute">border</span>:<span class="hljs-value"> <span class="hljs-number">2px</span> solid red</span></span>;
                <span class="hljs-comment">/* &#x5185;&#x8FB9;&#x8DDD; */</span>
                <span class="hljs-rule"><span class="hljs-attribute">padding</span>:<span class="hljs-value"> <span class="hljs-number">5px</span></span></span>;
                <span class="hljs-comment">/* &#x5185;&#x5BB9; content */</span>
                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">200px</span></span></span>;        
            }</span> 

            <span class="hljs-tag">div</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">box-sizing</span>:<span class="hljs-value"> border-box</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">200px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">padding</span>:<span class="hljs-value"> <span class="hljs-number">20px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">border</span>:<span class="hljs-value"> <span class="hljs-number">2px</span> solid blue</span></span>;    

                <span class="hljs-rule"><span class="hljs-attribute">margin</span>:<span class="hljs-value"> <span class="hljs-number">10px</span> auto</span></span>;
            }</span>    

                <span class="hljs-comment">/* margin &#x4E0E; padding
                 * 
                 * &#x4E00;&#x4E2A;&#x503C;&#xFF1A;4&#x4E2A;&#x65B9;&#x5411;&#x90FD;&#x7528;&#x540C;&#x4E00;&#x4E2A;&#x503C;
                 * &#x4E24;&#x4E2A;&#x503C;&#xFF1A;&#x5206;&#x522B;&#x4EE3;&#x8868; &#x4E0A;&#x4E0B; &#x548C; &#x5DE6;&#x53F3; 
                 *     auto&#x8868;&#x793A;&#x81EA;&#x52A8;&#x5206;&#x914D;&#xFF0C;&#x901A;&#x5E38;&#x7528;&#x5728;&#x5757;&#x7EA7;&#x5143;&#x7D20;&#x6C34;&#x5E73;&#x5C45;&#x4E2D;&#xFF08;&#x5DE6;&#x53F3;&#x65B9;&#x5411;&#xFF09;
                 * &#x4E09;&#x4E2A;&#x503C;&#xFF1A;&#x5206;&#x522B;&#x4EE3;&#x8868;  &#x4E0A; &#x3001;&#x5DE6;&#x53F3; &#x3001;&#x4E0B;&#xFF08;&#x987A;&#x65F6;&#x9488;&#xFF09;
                 * &#x56DB;&#x4E2A;&#x503C;&#xFF1A;&#x5206;&#x522B;&#x4EE3;&#x8868;  &#x4E0A; &#x3001;&#x53F3; &#x3001;&#x4E0B; &#x3001;&#x5DE6;&#xFF08;&#x987A;&#x65F6;&#x9488;&#xFF09;
                 */</span>

            <span class="hljs-comment">/*
             * &#x6807;&#x51C6;&#x76D2;&#x5B50;&#x6A21;&#x578B;&#x6240;&#x5360;&#x7684;&#x9762;&#x79EF;&#xFF1A;width + padding + border
             * IE&#x76D2;&#x5B50;(&#x602A;&#x5F02;&#x6A21;&#x5F0F;) &#x9762;&#x79EF;&#xFF1A;width
             * 
             * &#x6807;&#x51C6;&#x76D2;&#x5B50;(&#x5F80;&#x5916;&#x53BB;&#x6491;&#x5F00;) &#xFF1A;box-sizing:content-box
             * IE&#x76D2;&#x5B50;(&#x5F80;&#x5185;&#x53BB;&#x7F29;   &#x5373;&#x56FA;&#x5B9A;&#x7684;&#x4E00;&#x4E2A;border&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x80FD;&#x81EA;&#x7531;&#x8C03;&#x8282;&#x5927;&#x5C0F;&#x7684;&#x53EA;&#x6709;
             *      &#x91CC;&#x9762;&#x7684;padding&#x548C;width)    &#xFF1A; box-sizing:border-box
             * */</span>
        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-title">h1</span>&gt;</span>&#x6807;&#x9898;1<span class="hljs-tag">&lt;/<span class="hljs-title">h1</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>&#x5927;&#x96C4;&#x5BB6;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>

    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<h4 id="&#x8FD0;&#x884C;&#x7ED3;&#x679C;">&#x8FD0;&#x884C;&#x7ED3;&#x679C;</h4>
<p><img src="../image/201809225.png" alt="&#x56FE;&#x7247;"></p>
<h2 id="&#x5173;&#x4E8E;&#x76D2;&#x5B50;&#x6A21;&#x578B;&#x7684;&#x8BE6;&#x89E3;">&#x5173;&#x4E8E;&#x76D2;&#x5B50;&#x6A21;&#x578B;&#x7684;&#x8BE6;&#x89E3;</h2>
<pre><code class="lang-html"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;utf-8&quot;</span> /&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span>&#x6DD8;&#x5B9D;<span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-title">style</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span>&gt;</span><span class="css">

            <span class="hljs-tag">h3</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">text-decoration</span>:<span class="hljs-value"> none</span></span>;
                  <span class="hljs-rule"><span class="hljs-attribute">font-weight</span>:<span class="hljs-value"> bold</span></span>;
            }</span>
            <span class="hljs-tag">a</span><span class="hljs-rules">{
                <span class="hljs-comment">/*&#x6539;&#x53D8;a&#x6807;&#x7B7E;&#x7684;&#x663E;&#x793A;&#x6A21;&#x5F0F;&#xFF08;&#x8BBE;&#x7F6E;&#x4E3A;&#x884C;&#x7EA7;&#x5757;&#x72B6;&#x5143;&#x7D20;&#xFF09; */</span>
                <span class="hljs-rule"><span class="hljs-attribute">display</span>:<span class="hljs-value"> inline-block</span></span>;
                 <span class="hljs-comment">/* &#x6587;&#x5B57;&#x6837;&#x5F0F;&#x4E0D;&#x4F7F;&#x7528; &#x53BB;&#x6389;a&#x94FE;&#x63A5;&#x7684;&#x4E0B;&#x5212;&#x7EBF; */</span>
                <span class="hljs-rule"><span class="hljs-attribute">text-decoration</span>:<span class="hljs-value"> none</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> black</span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">14px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">padding</span>:<span class="hljs-value"> <span class="hljs-number">5px</span></span></span>;
                <span class="hljs-comment">/* &#x4F7F;&#x7528;&#x5B83;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x597D;&#x770B;&#x7684;&#x5706;&#x89D2;&#x8FB9;&#x6846; */</span>
                <span class="hljs-rule"><span class="hljs-attribute">border-radius</span>:<span class="hljs-value"> <span class="hljs-number">5px</span></span></span>;

                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">68px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">text-align</span>:<span class="hljs-value"> center</span></span>;
            }</span>
            <span class="hljs-rule"><span class="hljs-attribute">a</span>:<span class="hljs-value">hover{
                background-color: orangered</span></span>;    
            }
            <span class="hljs-id">#t1</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> orangered</span></span>;  
            }</span>
            <span class="hljs-id">#t2</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> green</span></span>;
            }</span>
            <span class="hljs-id">#t3</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> hotpink</span></span>;
            }</span>

        </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>

    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>        
            <span class="hljs-tag">&lt;<span class="hljs-title">h3</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;t1&quot;</span>&gt;</span>&#x4E3B;&#x9898;&#x5E02;&#x573A;<span class="hljs-tag">&lt;/<span class="hljs-title">h3</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x7231;&#x7F8E;&#x5973;&#x4EBA;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x54C1;&#x8D28;&#x7537;&#x4EBA;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x6DD8;&#x5B9D;&#x4E8C;&#x624B;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x5168;&#x7403;&#x6DD8;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x54C1;&#x724C;&#x8857;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x540C;&#x57CE;&#x4FBF;&#x6C11;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x82B1;&#x5AC1;&#x65B0;&#x5A18;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x6F6E;&#x5B9D;&#x51FA;&#x8857;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">hr</span> /&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>    
        <span class="hljs-tag">&lt;<span class="hljs-title">h3</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;t2&quot;</span>&gt;</span>&#x7279;&#x8272;&#x8D2D;&#x7269;<span class="hljs-tag">&lt;/<span class="hljs-title">h3</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x6DD8;&#x91D1;&#x5E01;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x5929;&#x5929;&#x7279;&#x4EF7;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x514D;&#x8D39;&#x8BD5;&#x7528;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x53CD;&#x5B63;&#x6E05;&#x4ED3;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x79EF;&#x5206;&#x8D2D;&#x7269;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x54C1;&#x724C;&#x7279;&#x5356;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x7279;&#x4EF7;&#x540D;&#x54C1;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x54C1;&#x724C;&#x56E2;&#x8D2D;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">hr</span> /&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">h3</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;t3&quot;</span>&gt;</span>&#x5F53;&#x524D;&#x70ED;&#x70B9;<span class="hljs-tag">&lt;/<span class="hljs-title">h3</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x4E2D;&#x8001;&#x5E74;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x79D8;&#x5BC6;&#x597D;&#x5E97;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x65B0;&#x623F;&#x88C5;&#x4FEE;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x62A2;&#x52B5;&#x5FC5;&#x8BFB;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x751F;&#x6001;&#x519C;&#x4E1A;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x53CC;&#x5341;&#x4E00;&#x52B5;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>&#x6025;&#x62DB;&#x5BA2;&#x670D;<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;#&quot;</span>&gt;</span>iPhone5s<span class="hljs-tag">&lt;/<span class="hljs-title">a</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">hr</span> /&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<p><img src="../image/201809218.png" alt="&#x56FE;&#x7247;">
<img src="../image/201809221.png" alt="&#x56FE;&#x7247;">
<img src="../image/201809222.png" alt="&#x56FE;&#x7247;">
<img src="../image/201809223.png" alt="&#x56FE;&#x7247;">
<img src="../image/201809224.png" alt="&#x56FE;&#x7247;">
<img src="../image/&#x5927;&#x96C4;&#x5BB6;.jpg" alt="&#x56FE;&#x7247;"></p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../CSS/伪类选择器.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 伪类选择器"><i class="fa fa-angle-left"></i></a>
        
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
